<%@ page language="java" contentType="text/html; charset=UTF-8"%>

<%@ include file="/include/taglibs.jsp"%>
<html>

<head>

<title>请选择</title>
<link href="<%=request.getContextPath() %>/scripts/codeManager/css/style.css" rel="stylesheet" type="text/css" />
</head>
<script language="javascript" src="<%=request.getContextPath() %>/scripts/codeManager/js/xtree.js"></script>
<script language="JavaScript" src="<%=request.getContextPath() %>/scripts/codeManager/js/xmlextras.js"></script>
<script language="javascript" src="<%=request.getContextPath() %>/scripts/codeManager/js/xloadtree.js"></script>
<script language=javascript>
			webFXTreeConfig.blankIcon		= "<%=request.getContextPath() %>/scripts/codeManager/xtree/blank.png"; 
			webFXTreeConfig.rootIcon		= "<%=request.getContextPath() %>/scripts/codeManager/xtree/folder.png";
			webFXTreeConfig.openRootIcon	= "<%=request.getContextPath() %>/scripts/codeManager/xtree/openfolder.png";
			webFXTreeConfig.folderIcon		= "<%=request.getContextPath() %>/scripts/codeManager/xtree/folder.png";
			webFXTreeConfig.openFolderIcon	= "<%=request.getContextPath() %>/scripts/codeManager/xtree/openfolder.png";
			webFXTreeConfig.fileIcon		= "<%=request.getContextPath() %>/scripts/codeManager/xtree/file.png";
			webFXTreeConfig.lMinusIcon		= "<%=request.getContextPath() %>/scripts/codeManager/xtree/Lminus.png";
			webFXTreeConfig.lPlusIcon		= "<%=request.getContextPath() %>/scripts/codeManager/xtree/Lplus.png";
			webFXTreeConfig.tMinusIcon		= "<%=request.getContextPath() %>/scripts/codeManager/xtree/Tminus.png";
			webFXTreeConfig.tPlusIcon		= "<%=request.getContextPath() %>/scripts/codeManager/xtree/Tplus.png";
			webFXTreeConfig.iIcon			= "<%=request.getContextPath() %>/scripts/codeManager/xtree/I.png";
			webFXTreeConfig.lIcon			= "<%=request.getContextPath() %>/scripts/codeManager/xtree/L.png";
			webFXTreeConfig.tIcon			= "<%=request.getContextPath() %>/scripts/codeManager/xtree/T.png";
	</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>

<body>

<table>
	<tr>

		<td align="left" width="250px">
		<div id="treeboxbox_tree"
			style="position: absolute; width: 250px; height: 750px; background-color: #f5f5f5; border: 1px solid Silver; left: 3px; top: 0px; overflow: auto;">
		<script type="text/javascript">      
var tendex_tree  = new WebFXTree('<a href="javascript:void(0)" target="_self"><b>网络监控</b></a>');
tendex_tree.setBehavior('classic');
 <c:forEach items="${regionManageList}" var="regionManage" varStatus="index">
 	var url = "<c:url value='common.indextree.do?method=getOtherRegionManage&id=${regionManage.idRegion}'/>";
 	var item_${index.index}=new WebFXLoadTreeItem("${regionManage.regionName}",url,"javascript:tonclick1('${regionManage.idRegion}','region')");
 	tendex_tree.open=true;
 	tendex_tree.add(item_${index.index});
 </c:forEach>
document.write(tendex_tree);
</script></div>
		</td>
		<td align="right">
		<div id="iframe-1"
			style="position: absolute; height: 750px;width:1000px; border: 0px solid Silver;">
	<iframe id="frame-1" src="" frameborder="0"
			style="width: 100%; height: 100%;"></iframe></div>
		</td> 
	</tr>
</table>
<script>
 function tonclick1(id,type){
    var iframe=document.getElementById("frame-1");
 	if(type=='region'){
 		iframe.src='common.indextreerobotmanage.do?id='+id;
	    //iframe.src='ShowRack.jsp?id='+id;
 	}
 	else if(type=='robotManage'){
 		//alert("robotManage");
        iframe.src=''; 
 	}
} 
</script>

</body>